Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 252 Bytes

6.2.4 - swoole_buffer->clear.md

File metadata and controls

10 lines (7 loc) · 252 Bytes

swoole_buffer->clear

清理缓存区数据。

swoole_buffer->clear()

执行此操作后,缓存区将重置。swoole_buffer对象就可以用来处理新的请求了。

swoole_buffer基于指针运算实现clear,并不会写内存